From 339a04da7cd3505077111bc5040e37e4ec5a8326 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Sun, 16 Feb 2020 00:32:05 +0100 Subject: [PATCH] gdk: Move GdkGravity to gdktypes.h --- gdk/gdksurface.h | 38 -------------------------------------- gdk/gdktypes.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h index 42a303fd7d..434cbfe7e3 100644 --- a/gdk/gdksurface.h +++ b/gdk/gdksurface.h @@ -145,44 +145,6 @@ typedef enum GDK_FUNC_CLOSE = 1 << 5 } GdkWMFunction; -/* Currently, these are the same values numerically as in the - * X protocol. If you change that, gdksurface-x11.c/gdk_surface_set_geometry_hints() - * will need fixing. - */ -/** - * GdkGravity: - * @GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner. - * @GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge. - * @GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner. - * @GDK_GRAVITY_WEST: the reference point is at the middle of the left edge. - * @GDK_GRAVITY_CENTER: the reference point is at the center of the surface. - * @GDK_GRAVITY_EAST: the reference point is at the middle of the right edge. - * @GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner. - * @GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge. - * @GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner. - * @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the - * surface itself, ignoring window manager decorations. - * - * Defines the reference point of a surface and the meaning of coordinates - * passed to gtk_window_move(). See gtk_window_move() and the "implementation - * notes" section of the - * [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec) - * specification for more details. - */ -typedef enum -{ - GDK_GRAVITY_NORTH_WEST = 1, - GDK_GRAVITY_NORTH, - GDK_GRAVITY_NORTH_EAST, - GDK_GRAVITY_WEST, - GDK_GRAVITY_CENTER, - GDK_GRAVITY_EAST, - GDK_GRAVITY_SOUTH_WEST, - GDK_GRAVITY_SOUTH, - GDK_GRAVITY_SOUTH_EAST, - GDK_GRAVITY_STATIC -} GdkGravity; - /** * GdkAnchorHints: * @GDK_ANCHOR_FLIP_X: allow flipping anchors horizontally diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h index c5e237fffc..fed5ab8215 100644 --- a/gdk/gdktypes.h +++ b/gdk/gdktypes.h @@ -141,6 +141,44 @@ typedef struct _GdkCairoContext GdkCairoContext; typedef struct _GdkGLContext GdkGLContext; typedef struct _GdkVulkanContext GdkVulkanContext; +/* Currently, these are the same values numerically as in the + * X protocol. If you change that, gdksurface-x11.c/gdk_surface_set_geometry_hints() + * will need fixing. + */ +/** + * GdkGravity: + * @GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner. + * @GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge. + * @GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner. + * @GDK_GRAVITY_WEST: the reference point is at the middle of the left edge. + * @GDK_GRAVITY_CENTER: the reference point is at the center of the surface. + * @GDK_GRAVITY_EAST: the reference point is at the middle of the right edge. + * @GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner. + * @GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge. + * @GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner. + * @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the + * surface itself, ignoring window manager decorations. + * + * Defines the reference point of a surface and the meaning of coordinates + * passed to gtk_window_move(). See gtk_window_move() and the "implementation + * notes" section of the + * [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec) + * specification for more details. + */ +typedef enum +{ + GDK_GRAVITY_NORTH_WEST = 1, + GDK_GRAVITY_NORTH, + GDK_GRAVITY_NORTH_EAST, + GDK_GRAVITY_WEST, + GDK_GRAVITY_CENTER, + GDK_GRAVITY_EAST, + GDK_GRAVITY_SOUTH_WEST, + GDK_GRAVITY_SOUTH, + GDK_GRAVITY_SOUTH_EAST, + GDK_GRAVITY_STATIC +} GdkGravity; + /** * GdkByteOrder: * @GDK_LSB_FIRST: The values are stored with the least-significant byte -- 2.30.2